package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.QueryOrderListByDateResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  订单列表（时间段）接口
* */


public class QueryOrderListByDateApi extends AbsRequest<QueryOrderListByDateApi.QueryOrderListByDateParams, QueryOrderListByDateResult[]> {

    public QueryOrderListByDateApi(QueryOrderListByDateParams queryOrderListByDateParams, Listener<QueryOrderListByDateResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getQueryOrderListByDateUrl(), queryOrderListByDateParams, listener, errorListener, QueryOrderListByDateResult[].class);
    }

    public static class QueryOrderListByDateParams extends BaseParams {

        public QueryOrderListByDateParams(String installContent, String userId,String startDate, String endDate) {

            put("INSTALL_CONTENT", installContent);
            put("USER_ID", userId);
            put("startDate", startDate);
            put("endDate", endDate);
        }
    }


}
